import service from "../index";

export const AddOrUpdateDesignFileCheckProblemRecord = (data) => {
    return service({
        method: "POST",
        url: "/api/TechnicalManagement/AddOrUpdateDesignFileCheckProblemRecord",
        data
    });

};


export const DeleteDesignFileCheckProblemRecord = (data) => {
    return service({
        method: "POST",
        url: "/api/TechnicalManagement/DeleteDesignFileCheckProblemRecord",
        data
    });

};


export const GetDesignFileCheckProblemRecord = (params) => {
    return service({
        method: "GET",
        url: "/api/TechnicalManagement/GetDesignFileCheckProblemRecord",
        params
    });

};


export const GetPressureVesselDesignProductRecord = (params) => {
    return service({
        method: "GET",
        url: "/api/TechnicalManagement/GetPressureVesselDesignProductRecord",
        params
    });

};


export const ExportPressureVesselDesignProductRecord = (params) => {
    return service({
        method: "POST",
        url: "/api/TechnicalManagement/ExportPressureVesselDesignProductRecord",
        params,
        responseType: "blob",
    });

};


export const GetAllProjectReview = (params) => {
    return service({
        method: "GET",
        url: "/api/TechnicalManagement/GetAllProjectReview",
        params
    });

};


export const DeleteProjectReview = (params) => {
    return service({
        method: "GET",
        url: "/api/TechnicalManagement/DeleteProjectReview",
        params
    });

};


export const AddProjectReview = (a,b,c,d,e,f,data) => {
    return service({
        method: "POST",
        url: `/api/TechnicalManagement/AddProjectReview?fileType=${a}&review_time=${b}&review_record=${c}&note=${d}&user=${e}&review_index=${f}`,
        data
    });

};


export const UpdateProjectReview = (url,data) => {
    return service({
        method: "POST",
        url: `/api/TechnicalManagement/UpdateProjectReview${url}`,
        data
    });

};